//go:build windows

/*
 * Copyright (C) 2019 The Winc Authors. All Rights Reserved.
 */

package winc

import (
	"gitee.com/go_888/wails/internal/frontend/desktop/windows/winc/w32"
)

type Label struct {
	ControlBase
}


// ff:
// parent:
func NewLabel(parent Controller) *Label {
	lb := new(Label)

	lb.InitControl("STATIC", parent, 0, w32.WS_CHILD|w32.WS_VISIBLE|w32.SS_LEFTNOWORDWRAP)
	RegMsgHandler(lb)

	lb.SetFont(DefaultFont)
	lb.SetText("Label")
	lb.SetSize(100, 25)
	return lb
}


// ff:
// lparam:
// wparam:
// msg:
func (lb *Label) WndProc(msg uint32, wparam, lparam uintptr) uintptr {
	return w32.DefWindowProc(lb.hwnd, msg, wparam, lparam)
}
